import * as types from './mutation-types'

const mutations = {
  [types.SET_PARAMS] (state, params) {
    state.params = { ...state.params, ...params}
  },
  [types.SET_MOVIES] (state, movies) {
    state.movies = movies
  },
  setUsername(state, username) {
    state.username = username
  }
}

export default mutations
